import request from '@/utils/request'

export function selectOperationSummaryList(query) {
  return request({
    url: '/tj/operation/list',
    method: 'get',
    params: query
  })
}

export function initOperationSummary(month) {
  return request({
    url: '/tj/operation/init/' + month,
    method: 'get'
  })
}

export function insertOperationSummary(data) {
  return request({
    url: '/tj/operation',
    method: 'post',
    data: data
  })
}

export function updateOperationSummary(data) {
  return request({
    url: '/tj/operation',
    method: 'put',
    data: data
  })
}

export function deleteOperationSummary(id) {
  return request({
    url: '/tj/operation/' + id,
    method: 'delete'
  })
}
